package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: MaketingUserBean
 * @Desciption: //营销User数据bean
 * @author: zhangshihao
 * @date: 2018-05-23
 */
public class MaketingUserBean extends NetBaseBean {

    public int id;
    public String nickname;
    public String phone;
    public String avatar;
    public String insider_time;
    public int insider;
    public int vip;
    public String vip_endtime;
    public String vip_time;//购买获得vip时间
    public int integral;//积分
    public int svip;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        nickname = jsonObject.optString("nickname","");
        phone = jsonObject.optString("phone","");
        avatar = jsonObject.optString("avatar","");
        insider_time = jsonObject.optString("insider_time","");
        insider = jsonObject.optInt("insider",0);
        vip = jsonObject.optInt("vip",0);
        vip_endtime = jsonObject.optString("vip_endtime","");
        vip_time = jsonObject.optString("vip_time","");
        integral = jsonObject.optInt("integral",0);
        svip = jsonObject.optInt("svip",0);
    }
}
